package com.todo.sight.application.iface.frontend.request;


import com.todo.common.common.enums.CityTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2024/5/8 18:23
 * @description
 */
@Data
@Schema(title = "查询城市列表入参", description = "查询城市列表入参")
public class QueryCityInfoListParam {

    /**
     * {@link CityTypeEnum}
     */
    @Schema(title = "城市类型", description = "城市类型：省、市、区")
    private Integer cityType;

    @Schema(title = "父级别Id", description = "父级别Id，省则为空")
    private Long parentId;

    public boolean baseCheck() {
        if (cityType == null){
            return false;
        }
        return true;
    }
}
